package com.eastfair.messagecenter.hystrix;

import com.eastfair.core.base.R;
import com.eastfair.messagecenter.api.MsgServiceFeign;
import com.eastfair.messagecenter.api.SmsTemplateServiceFeign;
import com.eastfair.messagecenter.dto.SmsSendDTO;
import com.eastfair.messagecenter.dto.SmsTemplateDTO;
import com.eastfair.messagecenter.vo.SmsTemplateVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 用户API熔断
 *
 * @author zuihou
 * @date 2019/07/23
 */
@Component
public class SmsTemplateApiFallback implements SmsTemplateServiceFeign {


    @Override
    public R<List<SmsTemplateVO>> listVO(SmsTemplateDTO smsTemplateDTO) {
        return R.timeout();
    }
}
